import { http } from "@/utils";

export function getSaltInfo() {
  return http.get("/salt");
}

export function login(params = {}) {
  return http.post("/login", params);
}

export function loginout() {
  return http.post("/login-out");
}

export function refreshToken(params = {}) {
  return http.get("/token/refresh", params);
}

export function getMenu() {
  return http.get("/current/menu");
}

export function getRouter() {
  return http.get("/current/router");
}

export function getInfo() {
  return http.get("/current/info");
}
